package com.health.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.health.mapper.*;
import com.health.entity.*;
import com.health.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserModel> implements UserService {

    @Autowired
    private UserMapper userMapper;


    @Override
    public IPage<UserModel> getUserList(Page page){
        LambdaQueryWrapper<UserModel> queryWrapper = new LambdaQueryWrapper<> ();
        
        return userMapper.selectPage(page, queryWrapper);
    }
}
